<!-- #section:basics/navbar.layout -->
<div id="navbar" class="navbar navbar-default">
    <script type="text/javascript">
        try {
            ace.settings.check('navbar', 'fixed')
        } catch (e) {
        }
    </script>
    <div class="navbar-container" id="navbar-container">
        <!-- #section:basics/sidebar.mobile.toggle -->
        <button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">
            <span class="sr-only"></span>

            <span class="icon-bar"></span>

            <span class="icon-bar"></span>

            <span class="icon-bar"></span>
        </button>
        <!-- /section:basics/sidebar.mobile.toggle -->
        <div class="navbar-header pull-left" style="margin-left: -4px">
            <!-- #section:basics/navbar.layout.brand -->
            <a href="{:U('index/index')}" class="navbar-brand">
                <small>
                    <i class="fa fa-home"></i>
                    {$Think.CONFIG.sitename}
                </small>
            </a>
        </div>

        <!-- 右侧菜单 -->
        <div class="navbar-buttons navbar-header pull-right" role="navigation" style="margin-right: -10px">
            <ul class="nav ace-nav">
                <li class="light-blue">
                    <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                        <img class="nav-user-photo" src="<if condition=" $user.head eq ''
                        ">__PUBLIC__/qwadmin/avatars/avatar2.png
                        <else/>
                        __ROOT__{$user.head}</if>" alt="{$user.user}" />
                        <span class="user-info">
                            <small>欢迎光临，</small>
                            {$user.user}
                        </span>

                        <i class="ace-icon fa fa-caret-down"></i>
                    </a>

                    <ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
                        <li >
                            <a href="{:U('cache/clear')}" title="清除缓存" target="_self">
                                <i class="ace-icon fa fa-trash"></i>
                                清除缓存
                            </a>
                        </li>
                        <li>
                            <a href="{:U('Personal/profile')}">
                                <i class="ace-icon fa fa-user"></i>
                                个人资料
                            </a>
                        </li>
                        <li class="">
                            <a href="/" title="前台首页" target="_blank">
                                <i class="ace-icon fa fa-home"></i>
                                前台首页
                            </a>
                        </li>
                        <li class="divider"></li>

                        <li>
                            <a href="{:U('logout/index')}">
                                <i class="ace-icon fa fa-power-off"></i>
                                退出
                            </a>
                        </li>
                    </ul>
                </li>

                <!-- /section:basics/navbar.user_menu -->
            </ul>
        </div>
        <!-- 主菜单 -->
        <nav role="navigation" class="navbar-menu pull-left collapse navbar-collapse" id="navmenu">
            <!-- #section:basics/navbar.nav -->
            <ul class="nav navbar-nav">
                <volist name="menu" id="v">
                    <li <if condition="($v['id'] eq $current['id']) OR ($v['id'] eq $current['pid']) OR ($v['id'] eq $current['ppid'])">class="active<if condition="$current['pid'] neq '0'">open</if>"</if>>
                     <a href="<empty name="v.name">#<else/>{:U($v['name'])}</empty>"<notempty name="v.children">class="dropdown-toggle" data-toggle="dropdown"</notempty>>
                        <i class="{$v.icon}"></i>
                        <span class="menu-text">{$v.title}</span>
                        <notempty name="v.children">
                            <i class="ace-icon fa fa-angle-down bigger-110"></i>
                        </notempty>
                    </a>
                    <notempty name="v.children">
                        <ul class=" dropdown-menu dropdown-light-blue dropdown-caret">
                            <volist name="v.children" id="vv">
                                <li
                                <if condition="($vv['id'] eq $current['id']) OR ($vv['id'] eq $current['pid'])">class="active
                                    <if condition="$current['ppid'] neq '0'">open</if>
                                    "
                                </if>
                                >
                                <a href="<empty name="vv.children">{:U($vv['name'])}
                                    <else/>
                                    #</empty>"
                                    <notempty name="vv.children">class="dropdown-toggle" data-toggle="dropdown"</notempty>
                                    >
                                    <i class="{$vv.icon}"></i>
                                    {$vv.title}
                                    <notempty name="vv.children"><b class="arrow fa fa-angle-down"></b></notempty>
                                </a>
                                <notempty name="vv.children">
                                    <ul class="dropdown-menu dropdown-light-blue dropdown-caret" >
                                        <volist name="vv.children" id="vvv">
                                            <li
                                            <if condition="$vvv['id'] eq $current['id']">class="active"</if>
                                            >
                                            <a href="{:U($vvv['name'])}" data-toggle="dropdown">
                                                <i class="{$vvv.icon}"></i>
                                                {$vvv.title}
                                            </a>
                                            <i class="ace-icon fa fa-angle-down bigger-110"></i>
                                        </li>
                                    </volist>
                                </ul>
                            </notempty>
                        </li>
                    </volist>
                </ul>
            </notempty>
        </volist>
    </ul>
</nav>
</div>
<!-- /.navbar-container -->
</div>
<!-- /section:basics/navbar.layout -->